package com.xdb.sqlparser.ast.statement;

import java.util.ArrayList;
import java.util.List;

import com.xdb.sqlparser.ast.SQLName;
import com.xdb.sqlparser.ast.AbstractSQLObjectImpl;
import com.xdb.sqlparser.visitor.SQLAstVisitor;

public class SQLAlterTableDropColumnItem extends AbstractSQLObjectImpl implements SQLAlterTableItem {

	private List<SQLName> columns = new ArrayList<SQLName>();

	private boolean cascade = false;

	public SQLAlterTableDropColumnItem() {

	}

	@Override
	protected void accept0(SQLAstVisitor visitor) {
		if (visitor.visit(this)) {
			acceptChild(visitor, columns);
		}
		visitor.endVisit(this);
	}

	public List<SQLName> getColumns() {
		return columns;
	}

	public boolean isCascade() {
		return cascade;
	}

	public void setCascade(boolean cascade) {
		this.cascade = cascade;
	}

}
